package fina2.dcs.metadata;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "IN_SCHEDULES")
@SuppressWarnings("serial")
public class Schedule implements Serializable {
	private BigDecimal id;
	private BigDecimal bankId;
	private BigDecimal definitionId;
	private BigDecimal periodId;
	private BigDecimal delay;

	public Schedule() {

	}

	public Schedule(BigDecimal id, BigDecimal bankId, BigDecimal definitionId, BigDecimal periodId, BigDecimal delay) {
		this.id = id;
		this.bankId = bankId;
		this.definitionId = definitionId;
		this.periodId = periodId;
		this.delay = delay;
	}

	@Id
	@Column(name = "ID")
	public BigDecimal getId() {
		return id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@Column(name = "BANKID")
	public BigDecimal getBankId() {
		return bankId;
	}

	public void setBankId(BigDecimal bankId) {
		this.bankId = bankId;
	}

	@Column(name = "DEFINITIONID")
	public BigDecimal getDefinitionId() {
		return definitionId;
	}

	public void setDefinitionId(BigDecimal definitionId) {
		this.definitionId = definitionId;
	}

	@Column(name = "PERIODID")
	public BigDecimal getPeriodId() {
		return periodId;
	}

	public void setPeriodId(BigDecimal periodId) {
		this.periodId = periodId;
	}

	@Column(name = "DELAY")
	public BigDecimal getDelay() {
		return delay;
	}

	public void setDelay(BigDecimal delay) {
		this.delay = delay;
	}
}
